package com.huaxin.device.mapping;

import com.huaxin.device.dto.request.SwitchCabinetTypeCreateReqDTO;
import com.huaxin.device.dto.request.SwitchCabinetTypeUpdateReqDTO;
import com.huaxin.device.models.SwitchCabinetType;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

@Mapper(componentModel = "spring")
public interface SwitchCabinetTypeMapping {

    SwitchCabinetType toEntity(SwitchCabinetTypeCreateReqDTO in);

    void updateEntity(SwitchCabinetTypeUpdateReqDTO in, @MappingTarget SwitchCabinetType entity);
}